package com.example.good.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("users")
@ApiModel("用户")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @TableField("name")
    @ApiModelProperty(value = "用户名称")
    String name;

    @TableField("password")
    @ApiModelProperty(value = "用户密码")
    String password;
    
}
